package com.saxon.blog.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


import java.io.Serializable;
import java.util.Date;
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class User implements Serializable {
    private int id;
    private String userAccount;
    private String userName;
    private String userPassword;
    private int userRole;
    private Date createDate;
    private Date modifyDate;

    public User (String userAccount, String userName, String userPassword, int userRole, Date createDate, Date modifyDate) {
        this.userAccount = userAccount;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userRole = userRole;
        this.createDate = createDate;
        this.modifyDate = modifyDate;
    }
}
